package com.yueyang.sojourn.server.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 新增商户dto
 * @author andy.yang
 * @summary
 * @Copyright (c) 2020, Yueyang Group All Rights Reserved.
 * @since 2020-03-17 10:45
 */
@Data
@ApiModel("新增商户")
public class AddMerchantDto {
    /**
     * 商户名
     */
    @ApiModelProperty(value = "商户名: 10-此商户名称已存在", required = true)
    @NotBlank(message = "[商户名]不能为空")
    @Size(min = 1, max = 15, message = "[微信支付商户号]限制1至15字")
    private String name;

    /**微信支付商户号**/
    @ApiModelProperty(value = "微信支付商户号: 20-此微信支付商户号已存在", required = true)
    @NotBlank(message = "[微信支付商户号]不能为空")
    @Size(min = 1, max = 20, message = "[微信支付商户号]限制1至20数字")
    private String wxMerchantNo;

    /**
     * 商户绑定的项目：一个商户一个项目
     */
    @ApiModelProperty(value = "绑定项目: 30-此项目已绑定其它商户", required = true)
    @NotNull(message = "[绑定项目]不能为空")
    private Long projectId;
}
